<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Flashgame
 * @version    $Id: index.tpl 6755 2010 YouNet $
 * @author     To Anh
 */
?>
<h2><?php echo $this->translate("Games Plugin") ?></h2>

<?php if( count($this->navigation) ): ?>
  <div class='tabs'>
    <?php
      // Render the menu
      //->setUlClass()
      echo $this->navigation()->menu()->setContainer($this->navigation)->render()
    ?>
  </div>
<?php endif; ?>

<h3><?php echo $this->translate("Client Payment") ?></h3>

<?php 

    //echo $this->form->render($this) 
    if (count($this->paginator) > 0):
?>
    <?php echo count($this->paginator) . $this->translate(" payment(s) found."); ?>
    <table class='admin_table'>
      <thead>
        <tr>
          <th><?php echo $this->translate("Username") ?></th>
          <th><?php echo $this->translate("Date") ?></th>
          <th><?php echo $this->translate("Description") ?></th>
          <th><?php echo $this->translate("Status") ?></th>
          <th><?php echo $this->translate("Amount") ?></th>
          <th><?php echo $this->translate("Client") ?></th>
          <th><?php echo $this->translate("Source") ?></th>
          <th><?php echo $this->translate("TransactionID") ?></th>
        </tr>
      </thead>
        <tbody>
        <?php foreach( $this->paginator as $item ): ?>
            <tr>
                <td><?php echo $item->username; ?></td>
                <td><?php echo $item->datecreation; ?></td>
                <td><?php echo $item->userpaymenthistory_text; ?></td>
                <td><?php echo $item->paymentstatus; ?></td>
                <td><?php echo $item->userpaymenthistory_amount; ?></td>
                <td><?php echo $item->client_email; ?></td>
                <td><?php echo $this->translate('Paypal'); ?></td>
                <td><?php echo $item->txnid; ?></td>
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
<?php
    else:
?>

        
<?php endif; ?>

<div>
  <?php echo $this->paginationControl($this->paginator); ?>
</div>

</div>